package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by qinhong on 2017/3/9.
 */
public class DeviceSurvey extends AbstractErrorBody {

    private int online;
    private int total;
    private NewBean newX;
    private ActiveBean active;

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
    @JSONField(name = "new")
    public NewBean getNewX() {
        return newX;
    }
    @JSONField(name = "new")
    public void setNewX(NewBean newX) {
        this.newX = newX;
    }

    public ActiveBean getActive() {
        return active;
    }

    public void setActive(ActiveBean active) {
        this.active = active;
    }

    public static class NewBean {

        private int today;
        private int yesterday;

        private int _$7_day;

        private int _$30_day;

        public int getToday() {
            return today;
        }

        public void setToday(int today) {
            this.today = today;
        }

        public int getYesterday() {
            return yesterday;
        }

        public void setYesterday(int yesterday) {
            this.yesterday = yesterday;
        }
        @JSONField(name ="7_day")
        public int get_$7_day() {
            return _$7_day;
        }
        @JSONField(name ="7_day")
        public void set_$7_day(int _$7_day) {
            this._$7_day = _$7_day;
        }
        @JSONField(name ="30_day")
        public int get_$30_day() {
            return _$30_day;
        }
        @JSONField(name ="30_day")
        public void set_$30_day(int _$30_day) {
            this._$30_day = _$30_day;
        }
    }

    public static class ActiveBean {

        private int today;
        private int yesterday;

        private int _$7_day;

        private int _$30_day;

        public int getToday() {
            return today;
        }

        public void setToday(int today) {
            this.today = today;
        }

        public int getYesterday() {
            return yesterday;
        }

        public void setYesterday(int yesterday) {
            this.yesterday = yesterday;
        }
        @JSONField(name ="7_day")
        public int get_$7_day() {
            return _$7_day;
        }
        @JSONField(name ="7_day")
        public void set_$7_day(int _$7_day) {
            this._$7_day = _$7_day;
        }
        @JSONField(name ="30_day")
        public int get_$30_day() {
            return _$30_day;
        }
        @JSONField(name ="30_day")
        public void set_$30_day(int _$30_day) {
            this._$30_day = _$30_day;
        }
    }

}
